package com.zslh.service;

import java.util.List;

import com.zslh.dao.TargetDao;
import com.zslh.entity.Target;

public class TargetService {
	TargetDao dao = new TargetDao();
	public List<Target> findByIdForTargetList(String projectId) {
		
		return dao.findByIdForTargetList(projectId);
	}
	
	public void save(Target target) {
		dao.save(target);
		
	}

	public Target findByIdForTarget(String targetId) {
		
		return dao.findByIdForTarget(targetId);
	}

	public void saveEdit(Target target, String targetId) {
		
		dao.update(target,targetId);
		
	}

	

}
